<script setup>
import Header from '@/components/header.vue'
</script>

<template>
  <div class="app">
    <Header></Header>
    <!-- 路由容器 -->
    <router-view>
    </router-view>

    <!-- 导航栏 -->
    <div class="menu">
      <!-- 主页导航按钮 -->
      <div class="menu_item">
        <router-link to="/home">
          <el-icon :size="26">
            <i-ep-House />
          </el-icon>
          <div>主页</div>
        </router-link>
      </div>
      <!-- 招聘页按钮 -->
      <div class="menu_item">
        <router-link to="/job">
          <el-icon :size="26">
            <i-ep-Search />
          </el-icon>
          <div>招聘</div>
        </router-link>
      </div>
      <!-- 简历页导航按钮 -->
      <div class="menu_item">
        <router-link to="/vitae">
          <el-icon :size="26">
            <i-ep-Tickets />
          </el-icon>
          <div>简历</div>
        </router-link>
      </div>
      <!-- “我的”导航按钮 -->
      <div class="menu_item">
        <router-link to="/mine">
          <el-icon :size="26">
            <i-ep-User />
          </el-icon>
          <div>我的</div>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value1: true,
      value2: true
    }
  },
}
</script>

<style>
.app {
  overflow: hidden;
}

.menu {
  width: 100%;
  position: fixed;
  bottom: 0;
  display: flex;
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  background-color: white;
}

.menu_item {
  width: 25%;
  text-align: center;
}

.menu_item a {
  color: #333;
  text-decoration: none;
}

a.active {
  color: #409eff;
}

.absolute {
  position: absolute;
}
</style>
